package cn.yh.springbootjwt.mapper;

import cn.yh.springbootjwt.domain.entity.UserDo;
import cn.yh.springbootjwt.domain.query.UserQuery;
import cn.yh.springbootjwt.domain.vo.UserVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface UserMapper {
    UserDo selectByUsername(String username);

    UserVo selectByUserId(Long userId);

    int createUser(@Param("username") String username, @Param("password") String password);

    int updateUser(@Param("username") String username, @Param("password") String password, @Param("userId") Long userId);

    int deleteUserByUserId(@Param("userId") Long userId);
}
